package cn.edu.sdjzu.cs.dingcan.entity;

/**
 * 订单详细实体类
 * 
 */
public class OrderItem {

	private Long id; 		// 主键
	private Food food;		// 菜品
	private int count; 		// 菜品数量

	public OrderItem(Food food, int count) {
		this.food = food;
		this.count = count;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Food getFood() {
		return food;
	}

	public void setFood(Food food) {
		this.food = food;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public String toString() {
		return "OrderItem [id=" + id + " food="
				+ food.getName() + ", count=" + count + "]";
	}

}
